<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>dd</title>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <meta http-equiv='expires' content='0'>
        <meta http-equiv='cache-control' content='no-cache'>
        <meta http-equiv='pragma' content='no-cache'>
        <link href="../../main/webapp/branding/css/default.css" media="screen" rel="Stylesheet" type="text/css" />
        <link href="../../main/webapp/branding/css/jradweb.css" media="screen" rel="Stylesheet" type="text/css" />
        <script type="text/javascript" src="jsUnitCore.js">
        </script>
        <script type="text/javascript" src="../../main/webapp/branding/js/jquery.js">
        </script>
        <script type="text/javascript" src="../../main/webapp/branding/js/interface.js">
        </script>
        <script type="text/javascript" src="../../main/webapp/branding/js/jradweb-jquery-ext.js">
        </script>
        <script type="text/javascript">
        
            var j = jQuery.noConflict();
            function testWindow(){
                var wp = j.window({
                    id: 'hello'
                });
                assertNotNull("wp is null", wp);
                assertEquals('id not match', 'hello', wp.id);
            }
            
            function updateHello(){
                var div = j('#helloDiv');                
                div.setUri('./part.html');
                div.reload();
            }
			var msg="tmsg";
			var wcallback = function(args){
				alert("hello:"+args.message);
			}
			
			function showWindow(){
				 
				var wp=j.window({id:'test_window',content:"This is content",confirm:true,width:'300px',callback:wcallback,args:{message:'hi'}});
				//wp.content.html("hello");
				 
				wp.show();
			}
			function array(){
				var a=new Array();
				a['a']='aa';
				a['b']='bb';
				alert(a.length);
				alert(a.m);
			}
        </script>
    </head>
    <body>
        <div id='helloDiv'>
            Hello
        </div>
        <button onclick="updateHello()">
            Update Hello
        </button>
		<button onclick="showWindow()">
            Show Window
        </button>
		<button onclick="array()">
            array
        </button>
    </body>
</html>
